﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DFASimulation;

namespace DFAConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            String calc = "Yes";
            while(calc.StartsWith("Y", StringComparison.CurrentCultureIgnoreCase)){
                DFAInterface dfa = new DFAInterface();
                dfa.createStatesCLI();
                dfa.createRulesCLI();
                dfa.createTransitionsCLI();
                dfa.setStartStateCLI();
                dfa.viewSystemCLI();
                dfa.DCLI();
                Console.WriteLine("Do you want to create another system to be parsed? (Y/N): ");
                calc = Console.ReadLine();
                Console.Clear();
            }
            Console.WriteLine("Thank you for using DFA Systems Simulation.\n\n\t\t\t\t\tCreated By Lefteris Kyriakakis @2013");
            Console.ReadKey(true);
        }
    }
}
